package org.jsola.hr.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.entity.BaseDeleteDO;
import org.jsola.core.entity.Key;

import javax.persistence.Table;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "hr_attend_shift")
@Key(UUID = true)
public class AttendShiftDO extends BaseDeleteDO<String> {

    private static final long serialVersionUID = 1L;

    /**
     * 考勤方案ID
     */
    private String attendPlanId;
    /**
     * 班次名称
     */
    private String name;
    /**
     * 打卡时段JSON
     */
    private String periodJson;
    /**
     * 是否高级设置;1-是,0-否
     */
    private Boolean isAdvanc;
    /**
     * 允许迟到早退 : 1-允许,0-不允许
     */
    private Integer isAllowedLateEarly;
    /**
     * 上班允许迟到(分钟)
     */
    private Integer lateMinute;
    /**
     * 下班允许早退(分钟)
     */
    private Integer earlyMinute;
    /**
     * 允许晚走晚到 : 1-允许,0-不允许
     */
    private Integer isAllowLateLate;
    /**
     * 下班晚走(分钟)
     */
    private Integer offWorkLateMinute;
    /**
     * 上班晚到(分钟)
     */
    private Integer onWorkLateMinute;
    /**
     * 最早上班打卡时间(分钟)
     */
    private String earliestPunchTime;
    /**
     * 最晚下班打卡时间(分钟)
     */
    private String latestPunchTime;
    /**
     * 下班是否需要打卡 : 1-是,0-否
     */
    private Integer afterWorkNeedPunch;



}

